package com.app.main;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.EditText;

public class SearchMain extends Activity implements OnClickListener{
	
	public void onCreate(Bundle savedInstanceState) {
	      super.onCreate(savedInstanceState);
	      setContentView(R.layout.searchmain);
	      
	      Button button = (Button)findViewById(R.id.search_keyword);
	      
	      button.setOnClickListener(this);
	}
	
	public void onClick(View v){
		EditText et = (EditText)findViewById(R.id.keyword);
		String keyword = et.getText().toString();
		
		Intent intent = new Intent(SearchMain.this, SearchBook.class);
		intent.putExtra("keyword", keyword);
		startActivity(intent);
	}

}
